package me.shan.bit;

/**
 * 描述：求一个数二进制最右侧的1
 *
 * @author liuchuang
 * @date 2021/6/14
 */
public class FindRightOne {


    public static void main(String[] args) {
        int max = 10000;
        int a = (int) (Math.random() * max);
        System.out.println(a & (-a));
    }


}
